<?php
$this->breadcrumbs = array(
	'收款账' => array(
		'index'
	),
	$model->project->name,
);

if (Yii::app()->user->checkAccess('accountManage')) {
	$this->userActions = array(
		//array('label'=>'List AccountReceivable', 'url'=>array('index')),
		array(
			'label' => '新建收款账',
			'url' => array(
				'create'
			)
		),
		array(
			'label' => '更新',
			'url' => array(
				'update',
				'id' => $model->id
			)
		),
		array(
			'label' => '删除',
			'url' => '#',
			'linkOptions' => array(
				'submit' => array(
					'delete',
					'id' => $model->id
				),
				'confirm' => '确定要删除这条收款账么？'
			)
		),
		array(
			'label' => '管理收款账',
			'url' => array(
				'admin'
			)
		),
	);
}
?>

<h1>查看收款账 #<?php echo $model->project->name; ?></h1>
<?php $this
	->widget('zii.widgets.CDetailView',
		array(
			'data' => $model,
			'attributes' => array(
				'id',
				array(
					'name' => 'projectId',
					'type' => 'raw',
					'value' => $model->project->name,
				),
				'token',
				'receiveDate',
				'price',
				'note',
				'createTime',
				'createUserId',
				'updateTime',
				'updateUserId',
			),
		));
?>
